3.18 \(\int \frac {(d+e x)^2 (a+b \log (c x^n))}{x^6} \, dx\)

Optimal. Leaf size=95 \[ -\frac {d^2 \left (a+b \log \left (c x^n\right )\right )}{5 x^5}-\frac {d e \left (a+b \log \left (c x^n\right )\right )}{2 x^4}-\frac {e^2 \left (a+b \log \left (c x^n\right )\right )}{3 x^3}-\frac {b d^2 n}{25 x^5}-\frac {b d e n}{8 x^4}-\frac {b e^2 n}{9 x^3} \]

[Out]

-1/25*b*d^2*n/x^5-1/8*b*d*e*n/x^4-1/9*b*e^2*n/x^3-1/5*d^2*(a+b*ln(c*x^n))/x^5-1/2*d*e*(a+b*ln(c*x^n))/x^4-1/3*
e^2*(a+b*ln(c*x^n))/x^3

________________________________________________________________________________________

Rubi [A]  time = 0.08, antiderivative size = 74, normalized size of antiderivative = 0.78, number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {43, 2334, 12, 14} \[ -\frac {1}{30} \left (\frac {6 d^2}{x^5}+\frac {15 d e}{x^4}+\frac {10 e^2}{x^3}\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {b d^2 n}{25 x^5}-\frac {b d e n}{8 x^4}-\frac {b e^2 n}{9 x^3} \]

Antiderivative was successfully verified.

[In]

Int[((d + e*x)^2*(a + b*Log[c*x^n]))/x^6,x]

[Out]

-(b*d^2*n)/(25*x^5) - (b*d*e*n)/(8*x^4) - (b*e^2*n)/(9*x^3) - (((6*d^2)/x^5 + (15*d*e)/x^4 + (10*e^2)/x^3)*(a
+ b*Log[c*x^n]))/30

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 14

Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x], x] /; FreeQ[{c, m}, x] && SumQ[u]
 &&  !LinearQ[u, x] &&  !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]

Rule 43

Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d
*x)^n, x], x] /; FreeQ[{a, b, c, d, n}, x] && NeQ[b*c - a*d, 0] && IGtQ[m, 0] && ( !IntegerQ[n] || (EqQ[c, 0]
&& LeQ[7*m + 4*n + 4, 0]) || LtQ[9*m + 5*(n + 1), 0] || GtQ[m + n + 2, 0])

Rule 2334

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(x_)^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = I
ntHide[x^m*(d + e*x^r)^q, x]}, Simp[u*(a + b*Log[c*x^n]), x] - Dist[b*n, Int[SimplifyIntegrand[u/x, x], x], x]
] /; FreeQ[{a, b, c, d, e, n, r}, x] && IGtQ[q, 0] && IntegerQ[m] &&  !(EqQ[q, 1] && EqQ[m, -1])

Rubi steps

\begin {align*} \int \frac {(d+e x)^2 \left (a+b \log \left (c x^n\right )\right )}{x^6} \, dx &=-\frac {1}{30} \left (\frac {6 d^2}{x^5}+\frac {15 d e}{x^4}+\frac {10 e^2}{x^3}\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \frac {-6 d^2-15 d e x-10 e^2 x^2}{30 x^6} \, dx\\ &=-\frac {1}{30} \left (\frac {6 d^2}{x^5}+\frac {15 d e}{x^4}+\frac {10 e^2}{x^3}\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {1}{30} (b n) \int \frac {-6 d^2-15 d e x-10 e^2 x^2}{x^6} \, dx\\ &=-\frac {1}{30} \left (\frac {6 d^2}{x^5}+\frac {15 d e}{x^4}+\frac {10 e^2}{x^3}\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {1}{30} (b n) \int \left (-\frac {6 d^2}{x^6}-\frac {15 d e}{x^5}-\frac {10 e^2}{x^4}\right ) \, dx\\ &=-\frac {b d^2 n}{25 x^5}-\frac {b d e n}{8 x^4}-\frac {b e^2 n}{9 x^3}-\frac {1}{30} \left (\frac {6 d^2}{x^5}+\frac {15 d e}{x^4}+\frac {10 e^2}{x^3}\right ) \left (a+b \log \left (c x^n\right )\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 80, normalized size = 0.84 \[ -\frac {60 a \left (6 d^2+15 d e x+10 e^2 x^2\right )+60 b \left (6 d^2+15 d e x+10 e^2 x^2\right ) \log \left (c x^n\right )+b n \left (72 d^2+225 d e x+200 e^2 x^2\right )}{1800 x^5} \]

Antiderivative was successfully verified.

[In]

Integrate[((d + e*x)^2*(a + b*Log[c*x^n]))/x^6,x]

[Out]

-1/1800*(60*a*(6*d^2 + 15*d*e*x + 10*e^2*x^2) + b*n*(72*d^2 + 225*d*e*x + 200*e^2*x^2) + 60*b*(6*d^2 + 15*d*e*
x + 10*e^2*x^2)*Log[c*x^n])/x^5

________________________________________________________________________________________

fricas [A]  time = 0.89, size = 106, normalized size = 1.12 \[ -\frac {72 \, b d^{2} n + 360 \, a d^{2} + 200 \, {\left (b e^{2} n + 3 \, a e^{2}\right )} x^{2} + 225 \, {\left (b d e n + 4 \, a d e\right )} x + 60 \, {\left (10 \, b e^{2} x^{2} + 15 \, b d e x + 6 \, b d^{2}\right )} \log \relax (c) + 60 \, {\left (10 \, b e^{2} n x^{2} + 15 \, b d e n x + 6 \, b d^{2} n\right )} \log \relax (x)}{1800 \, x^{5}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)^2*(a+b*log(c*x^n))/x^6,x, algorithm="fricas")

[Out]

-1/1800*(72*b*d^2*n + 360*a*d^2 + 200*(b*e^2*n + 3*a*e^2)*x^2 + 225*(b*d*e*n + 4*a*d*e)*x + 60*(10*b*e^2*x^2 +
 15*b*d*e*x + 6*b*d^2)*log(c) + 60*(10*b*e^2*n*x^2 + 15*b*d*e*n*x + 6*b*d^2*n)*log(x))/x^5

________________________________________________________________________________________

giac [A]  time = 0.28, size = 108, normalized size = 1.14 \[ -\frac {600 \, b n x^{2} e^{2} \log \relax (x) + 900 \, b d n x e \log \relax (x) + 200 \, b n x^{2} e^{2} + 225 \, b d n x e + 600 \, b x^{2} e^{2} \log \relax (c) + 900 \, b d x e \log \relax (c) + 360 \, b d^{2} n \log \relax (x) + 72 \, b d^{2} n + 600 \, a x^{2} e^{2} + 900 \, a d x e + 360 \, b d^{2} \log \relax (c) + 360 \, a d^{2}}{1800 \, x^{5}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)^2*(a+b*log(c*x^n))/x^6,x, algorithm="giac")

[Out]

-1/1800*(600*b*n*x^2*e^2*log(x) + 900*b*d*n*x*e*log(x) + 200*b*n*x^2*e^2 + 225*b*d*n*x*e + 600*b*x^2*e^2*log(c
) + 900*b*d*x*e*log(c) + 360*b*d^2*n*log(x) + 72*b*d^2*n + 600*a*x^2*e^2 + 900*a*d*x*e + 360*b*d^2*log(c) + 36
0*a*d^2)/x^5

________________________________________________________________________________________

maple [C]  time = 0.17, size = 403, normalized size = 4.24 \[ -\frac {\left (10 e^{2} x^{2}+15 d e x +6 d^{2}\right ) b \ln \left (x^{n}\right )}{30 x^{5}}-\frac {-300 i \pi b \,e^{2} x^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+300 i \pi b \,e^{2} x^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+300 i \pi b \,e^{2} x^{2} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-300 i \pi b \,e^{2} x^{2} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}-450 i \pi b d e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+450 i \pi b d e x \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+450 i \pi b d e x \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-450 i \pi b d e x \mathrm {csgn}\left (i c \,x^{n}\right )^{3}-180 i \pi b \,d^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+180 i \pi b \,d^{2} \mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+180 i \pi b \,d^{2} \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-180 i \pi b \,d^{2} \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+200 b \,e^{2} n \,x^{2}+600 b \,e^{2} x^{2} \ln \relax (c )+600 a \,e^{2} x^{2}+225 b d e n x +900 b d e x \ln \relax (c )+900 a d e x +72 b \,d^{2} n +360 b \,d^{2} \ln \relax (c )+360 a \,d^{2}}{1800 x^{5}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*x+d)^2*(b*ln(c*x^n)+a)/x^6,x)

[Out]

-1/30*b*(10*e^2*x^2+15*d*e*x+6*d^2)/x^5*ln(x^n)-1/1800*(300*I*Pi*b*e^2*x^2*csgn(I*c*x^n)^2*csgn(I*c)-300*I*Pi*
b*e^2*x^2*csgn(I*x^n)*csgn(I*c*x^n)*csgn(I*c)+450*I*Pi*b*d*e*x*csgn(I*c*x^n)^2*csgn(I*c)-450*I*Pi*b*d*e*x*csgn
(I*c*x^n)^3+600*b*e^2*x^2*ln(c)+200*b*e^2*n*x^2+600*a*e^2*x^2-180*I*Pi*b*d^2*csgn(I*x^n)*csgn(I*c*x^n)*csgn(I*
c)-180*I*Pi*b*d^2*csgn(I*c*x^n)^3+180*I*Pi*b*d^2*csgn(I*c*x^n)^2*csgn(I*c)-450*I*Pi*b*d*e*x*csgn(I*x^n)*csgn(I
*c*x^n)*csgn(I*c)+900*b*d*e*x*ln(c)+225*b*d*e*n*x+900*a*d*e*x+300*I*Pi*b*e^2*x^2*csgn(I*x^n)*csgn(I*c*x^n)^2+4
50*I*Pi*b*d*e*x*csgn(I*x^n)*csgn(I*c*x^n)^2-300*I*Pi*b*e^2*x^2*csgn(I*c*x^n)^3+180*I*Pi*b*d^2*csgn(I*x^n)*csgn
(I*c*x^n)^2+360*b*d^2*ln(c)+72*b*d^2*n+360*a*d^2)/x^5

________________________________________________________________________________________

maxima [A]  time = 0.62, size = 100, normalized size = 1.05 \[ -\frac {b e^{2} n}{9 \, x^{3}} - \frac {b e^{2} \log \left (c x^{n}\right )}{3 \, x^{3}} - \frac {b d e n}{8 \, x^{4}} - \frac {a e^{2}}{3 \, x^{3}} - \frac {b d e \log \left (c x^{n}\right )}{2 \, x^{4}} - \frac {b d^{2} n}{25 \, x^{5}} - \frac {a d e}{2 \, x^{4}} - \frac {b d^{2} \log \left (c x^{n}\right )}{5 \, x^{5}} - \frac {a d^{2}}{5 \, x^{5}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)^2*(a+b*log(c*x^n))/x^6,x, algorithm="maxima")

[Out]

-1/9*b*e^2*n/x^3 - 1/3*b*e^2*log(c*x^n)/x^3 - 1/8*b*d*e*n/x^4 - 1/3*a*e^2/x^3 - 1/2*b*d*e*log(c*x^n)/x^4 - 1/2
5*b*d^2*n/x^5 - 1/2*a*d*e/x^4 - 1/5*b*d^2*log(c*x^n)/x^5 - 1/5*a*d^2/x^5

________________________________________________________________________________________

mupad [B]  time = 3.63, size = 85, normalized size = 0.89 \[ -\frac {x^2\,\left (10\,a\,e^2+\frac {10\,b\,e^2\,n}{3}\right )+6\,a\,d^2+x\,\left (15\,a\,d\,e+\frac {15\,b\,d\,e\,n}{4}\right )+\frac {6\,b\,d^2\,n}{5}}{30\,x^5}-\frac {\ln \left (c\,x^n\right )\,\left (\frac {b\,d^2}{5}+\frac {b\,d\,e\,x}{2}+\frac {b\,e^2\,x^2}{3}\right )}{x^5} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((a + b*log(c*x^n))*(d + e*x)^2)/x^6,x)

[Out]

- (x^2*(10*a*e^2 + (10*b*e^2*n)/3) + 6*a*d^2 + x*(15*a*d*e + (15*b*d*e*n)/4) + (6*b*d^2*n)/5)/(30*x^5) - (log(
c*x^n)*((b*d^2)/5 + (b*e^2*x^2)/3 + (b*d*e*x)/2))/x^5

________________________________________________________________________________________

sympy [A]  time = 4.20, size = 153, normalized size = 1.61 \[ - \frac {a d^{2}}{5 x^{5}} - \frac {a d e}{2 x^{4}} - \frac {a e^{2}}{3 x^{3}} - \frac {b d^{2} n \log {\relax (x )}}{5 x^{5}} - \frac {b d^{2} n}{25 x^{5}} - \frac {b d^{2} \log {\relax (c )}}{5 x^{5}} - \frac {b d e n \log {\relax (x )}}{2 x^{4}} - \frac {b d e n}{8 x^{4}} - \frac {b d e \log {\relax (c )}}{2 x^{4}} - \frac {b e^{2} n \log {\relax (x )}}{3 x^{3}} - \frac {b e^{2} n}{9 x^{3}} - \frac {b e^{2} \log {\relax (c )}}{3 x^{3}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((e*x+d)**2*(a+b*ln(c*x**n))/x**6,x)

[Out]

-a*d**2/(5*x**5) - a*d*e/(2*x**4) - a*e**2/(3*x**3) - b*d**2*n*log(x)/(5*x**5) - b*d**2*n/(25*x**5) - b*d**2*l
og(c)/(5*x**5) - b*d*e*n*log(x)/(2*x**4) - b*d*e*n/(8*x**4) - b*d*e*log(c)/(2*x**4) - b*e**2*n*log(x)/(3*x**3)
 - b*e**2*n/(9*x**3) - b*e**2*log(c)/(3*x**3)

________________________________________________________________________________________